-- DESCRIPTION-To Enable full auditing to monitor both successful and failed access to the SQL Server.   

EXECUTE master.dbo.xp_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer',N'AuditLevel',N'REG_DWORD',3
